changeset 7384:8b9a02536781 libavcodec

Make sure mmco index is 0 (instead of uninitialized) in all error returns.
author michael
date Fri, 25 Jul 2008 11:48:32 +0000
parents c4e5f2158b20
children 617eababb511
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 00:13:02 2008 +0000
+++ b/h264.c	Fri Jul 25 11:48:32 2008 +0000
@@ -3625,6 +3625,7 @@
     MpegEncContext * const s = &h->s;
     int i;
 
+    h->mmco_index= 0;
     if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
         s->broken_link= get_bits1(gb) -1;
         h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx