We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2bf00c commit af7562aCopy full SHA for af7562a
libavformat/mpeg.c
@@ -193,6 +193,8 @@ static long mpegps_psm_parse(MpegDemuxContext *m, AVIOContext *pb)
193
/* skip program_stream_info */
194
avio_skip(pb, ps_info_length);
195
es_map_length = avio_rb16(pb);
196
+ /* Ignore es_map_length, trust psm_length */
197
+ es_map_length = psm_length - ps_info_length - 10;
198
199
/* at least one es available? */
200
while (es_map_length >= 4){
0 commit comments