Browse Source

Ignore es_map_length when parsing mpeg program stream map.

Fixes ticket #3195.
tags/n2.2-rc1
Carl Eugen Hoyos 12 years ago
parent
commit
af7562a035
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/mpeg.c

+ 2
- 0
libavformat/mpeg.c View File

@@ -193,6 +193,8 @@ static long mpegps_psm_parse(MpegDemuxContext *m, AVIOContext *pb)
/* skip program_stream_info */ /* skip program_stream_info */
avio_skip(pb, ps_info_length); avio_skip(pb, ps_info_length);
es_map_length = avio_rb16(pb); es_map_length = avio_rb16(pb);
/* Ignore es_map_length, trust psm_length */
es_map_length = psm_length - ps_info_length - 10;


/* at least one es available? */ /* at least one es available? */
while (es_map_length >= 4){ while (es_map_length >= 4){


Loading…
Cancel
Save