summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-30 15:21:54 +0000
committerCarl Hetherington <cth@carlh.net>2012-10-30 15:21:54 +0000
commit73e4d3e55ea103dfbb0e26ed47019fda2612a902 (patch)
tree8d0ce1b68b89a4554a166ce449b8ae26618d0d83 /src/lib/ffmpeg_decoder.h
parente3636952b0d443f61c2966450cc68bc25480dfe2 (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.h6
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;