summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-31 22:14:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-01 21:43:42 +0100
commit36fa781bd6b4e0f40abd31431af2d29d87e9b194 (patch)
treebbf54d6987a2b6548f383eef9af08008616154e5 /libavcodec/h264.c
parent6bd8d61378403887268b75ac33e073903f35cb5f (diff)
h264: reset picture->sync on allocation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 384e2d101c..b0c5049483 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1327,6 +1327,7 @@ int ff_h264_frame_start(H264Context *h){
* See decode_nal_units().
*/
s->current_picture_ptr->f.key_frame = 0;
+ s->current_picture_ptr->sync = 0;
s->current_picture_ptr->mmco_reset= 0;
assert(s->linesize && s->uvlinesize);