diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 21:32:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 21:32:55 +0000 |
| commit | 0801b4163c1c66061692fe24ef39cfffdfda462e (patch) | |
| tree | 39b16aaeaa6a96264300a1a9f9ba9298a7fdc175 /src/lib/decoder.cc | |
| parent | 555b4068ff0e1726519d720b055a9faaca01a1a1 (diff) | |
Fix various bugs.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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> image, shared_ptr<Subtitle> 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; |
