# HG changeset patch # User michael # Date 1216986512 0 # Node ID 8b9a02536781068089f4b0428180362dbd78876d # Parent c4e5f2158b20d5fc2632b9704ee47be3a5f9f755 Make sure mmco index is 0 (instead of uninitialized) in all error returns. diff -r c4e5f2158b20 -r 8b9a02536781 h264.c --- 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