summaryrefslogtreecommitdiff
path: root/miavd/ffmpeg_encoder.cc
diff options
context:
space:
mode:
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 );
}