Merge commit '23376ae2f0247ff659724b6a5313639db0c991ad' into release/2.2
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Aug 2014 00:17:42 +0000 (02:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Aug 2014 00:17:42 +0000 (02:17 +0200)
* commit '23376ae2f0247ff659724b6a5313639db0c991ad':
  mpegts: Define the section length with a constant

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavformat/mpegtsenc.c

@@@ -259,10 -251,10 +263,10 @@@ static void mpegts_write_pat(AVFormatCo
                            data, q - data);
  }
  
 -static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
 +static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
  {
      MpegTSWrite *ts = s->priv_data;
-     uint8_t data[1012], *q, *desc_length_ptr, *program_info_length_ptr;
+     uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;
      int val, stream_type, i;
  
      q = data;