h264_parser: Use ff_h264_reset_sei()
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Mon, 14 Oct 2013 19:22:42 +0000 (19:22 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 22 Oct 2013 08:55:22 +0000 (10:55 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/h264_parser.c

index 4412b68..05a40c7 100644 (file)
@@ -181,11 +181,8 @@ static inline int parse_nal_units(AVCodecParserContext *s,
     s->key_frame         = 0;
     s->picture_structure = AV_PICTURE_STRUCTURE_UNKNOWN;
 
-    h->avctx                        = avctx;
-    h->sei_recovery_frame_cnt       = -1;
-    h->sei_dpb_output_delay         = 0;
-    h->sei_cpb_removal_delay        = -1;
-    h->sei_buffering_period_present = 0;
+    h->avctx = avctx;
+    ff_h264_reset_sei(h);
 
     if (!buf_size)
         return 0;