[FFmpeg-devel] [PATCH 1/4] mpeg: remove unused assignment

Timothy Gu timothygu99 at gmail.com
Fri Jul 18 04:25:40 CEST 2014


Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 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



More information about the ffmpeg-devel mailing list