Merge commit 'd86df7dd497ead1132bd95df7c4c18d91fbe3def' into release/0.10
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Aug 2014 17:01:25 +0000 (19:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Aug 2014 17:01:28 +0000 (19:01 +0200)
* commit 'd86df7dd497ead1132bd95df7c4c18d91fbe3def':
  mpegts: Define the section length with a constant

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

@@@ -235,10 -234,9 +239,9 @@@ 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;