From 0801b4163c1c66061692fe24ef39cfffdfda462e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 4 Nov 2012 21:32:55 +0000 Subject: Fix various bugs. --- src/lib/decoder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/decoder.cc') diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 5860f339e..17e26905e 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -320,6 +320,8 @@ Decoder::process_video (AVFrame* frame) emit_video (*i, sub); } + + ++_video_frames_in; } void @@ -337,7 +339,7 @@ void Decoder::emit_video (shared_ptr image, shared_ptr sub) { TIMING ("Decoder emits %1", _video_frames_out); - Video (image, _video_frames_out, sub); + Video (image, _video_frames_in, sub); ++_video_frames_out; _last_image = image; _last_subtitle = sub; -- cgit v1.2.3