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/mpegvideo.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/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index e130a935ba..39efc1e3c1 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -129,6 +129,7 @@ typedef struct Picture{ int ref_count[2][2]; ///< number of entries in ref_poc (FIXME need per slice) int mbaff; ///< h264 1 -> MBAFF frame 0-> not MBAFF int field_picture; ///< whether or not the picture was encoded in seperate fields + int sync; ///< has been decoded after a keyframe int mb_var_sum; ///< sum of MB variance for current frame int mc_mb_var_sum; ///< motion compensated MB variance for current frame |