summaryrefslogtreecommitdiff
path: root/miavd/ffmpeg_encoder.cc
diff options
context:
space:
mode:
authordeva <deva>2008-03-17 09:32:12 +0000
committerdeva <deva>2008-03-17 09:32:12 +0000
commit402fc59225bd9ee3bea39040bfed20dcfbcb0e21 (patch)
tree530a42fd3ecc60def61dbf79b5643ca56668ff17 /miavd/ffmpeg_encoder.cc
parent2f10a73cbbe4333e2a41e87a94eda7fb3d442dc5 (diff)
Removed some warnings and made things work with older ffmpeg. (Missing INT64_C).
Diffstat (limited to 'miavd/ffmpeg_encoder.cc')
-rw-r--r--miavd/ffmpeg_encoder.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/miavd/ffmpeg_encoder.cc b/miavd/ffmpeg_encoder.cc
index 2f73c4c..4f58f08 100644
--- a/miavd/ffmpeg_encoder.cc
+++ b/miavd/ffmpeg_encoder.cc
@@ -124,7 +124,8 @@ void FFMpegEncoder::encode(Frame* frame)
vfrm->avframe = avcodec_alloc_frame();
vfrm->codec_context = dvvcontext;
int got_picture;
- int pos = avcodec_decode_video(dvvcontext, vfrm->avframe, &got_picture, frame->data, frame->size);
+
+ avcodec_decode_video(dvvcontext, vfrm->avframe, &got_picture, frame->data, frame->size);
if(!got_picture)
MIaV::info->warn("Decoding did not result in a picture!");
output->writeFrame(vfrm);
@@ -163,7 +164,7 @@ void FFMpegEncoder::encode(Frame* frame)
}
// Decode audio using libdv
- int frames = dv_decode_full_audio( decoder, frame->data, audio_buffer );
+ dv_decode_full_audio( decoder, frame->data, audio_buffer );
}