From 402fc59225bd9ee3bea39040bfed20dcfbcb0e21 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 17 Mar 2008 09:32:12 +0000 Subject: Removed some warnings and made things work with older ffmpeg. (Missing INT64_C). --- miavd/ffmpeg_encoder.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'miavd/ffmpeg_encoder.cc') 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 ); } -- cgit v1.2.3