Signed-off-by: Timothy Gu <[email protected]>
---
libavformat/mpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index c53bab3..5891cea 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -204,8 +204,8 @@ static long mpegps_psm_parse(MpegDemuxContext *m,
AVIOContext *pb)
/* skip program_stream_info */
avio_skip(pb, ps_info_length);
- es_map_length = avio_rb16(pb);
/* Ignore es_map_length, trust psm_length */
+ avio_rb16(pb);
es_map_length = psm_length - ps_info_length - 10;
/* at least one es available? */
--
1.9.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel