diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-17 19:59:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-17 21:20:44 +0200 |
commit | a64b028aeb6579636e578ceb73f69b468bddb2f0 (patch) | |
tree | d370e53104f62637b4f755a6225c43cdf5af09ec /libavcodec/h264.h | |
parent | 35f38b3ab9d755aede5bce8abbe1cb9c07027f8a (diff) | |
download | ffmpeg-a64b028aeb6579636e578ceb73f69b468bddb2f0.tar.gz |
h264dec: Dont display trash before a keyframe.
Fixes Ticket472
This may (or may not) cause problems with files that have no keyframes.
Plese open a bugreport or mail me if you have a file for which this fails.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 374cd163ec..ed4afdddfa 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -582,6 +582,8 @@ typedef struct H264Context{ int cur_chroma_format_idc; int16_t slice_row[MAX_SLICES]; ///< to detect when MAX_SLICES is too low + + int sync; ///< did we had a keyframe or recovery point }H264Context; |