[FFmpeg-cvslog] r19700 - trunk/libavformat/avidec.c
diego
subversion
Tue Aug 25 11:46:17 CEST 2009
Author: diego
Date: Tue Aug 25 11:46:16 2009
New Revision: 19700
Log:
Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv
Modified:
trunk/libavformat/avidec.c
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c Tue Aug 25 10:47:39 2009 (r19699)
+++ trunk/libavformat/avidec.c Tue Aug 25 11:46:16 2009 (r19700)
@@ -826,6 +826,12 @@ resync:
if(!((i-avi->last_pkt_pos)&1) && get_stream_idx(d+1) < s->nb_streams)
continue;
+ //detect ##ix chunk and skip
+ if(d[2] == 'i' && d[3] == 'x' && n < s->nb_streams){
+ url_fskip(pb, size);
+ goto resync;
+ }
+
//parse ##dc/##wb
if(n < s->nb_streams){
AVStream *st;
More information about the ffmpeg-cvslog
mailing list