diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-30 15:21:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-30 15:21:54 +0000 |
| commit | 73e4d3e55ea103dfbb0e26ed47019fda2612a902 (patch) | |
| tree | 8d0ce1b68b89a4554a166ce449b8ae26618d0d83 /src/lib/ffmpeg_decoder.h | |
| parent | e3636952b0d443f61c2966450cc68bc25480dfe2 (diff) | |
Try to use the previous frame rather than the current one when padding PTS gaps.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
| -rw-r--r-- | src/lib/ffmpeg_decoder.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index abcdfa0b2..58e08a779 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -89,7 +89,11 @@ private: int _video_stream; int _audio_stream; ///< may be < 0 if there is no audio int _subtitle_stream; ///< may be < 0 if there is no subtitle - AVFrame* _frame; + + AVFrame* _video_frame[2]; + int _last_video_frame; + int _this_video_frame; + AVFrame* _audio_frame; std::vector<AudioStream> _audio_streams; std::vector<SubtitleStream> _subtitle_streams; |
