Mercurial > libavformat.hg
changeset 5146:b0706c2efb78 libavformat
Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv
author | diego |
---|---|
date | Tue, 25 Aug 2009 09:46:16 +0000 |
parents | d65f5e784b3b |
children | 64ad0b0e120d |
files | avidec.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Tue Aug 25 08:47:39 2009 +0000 +++ b/avidec.c Tue Aug 25 09:46:16 2009 +0000 @@ -826,6 +826,12 @@ 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;