Mercurial > libavformat.hg
comparison avidec.c @ 5243:13dd683f3ff2 libavformat
Fix playback of strange AVI files with stray LIST.
sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI
fix suggested by Michael
author | aurel |
---|---|
date | Thu, 01 Oct 2009 10:24:02 +0000 |
parents | 00fcfe0596e8 |
children | 4e1e9ab777a1 |
comparison
equal
deleted
inserted
replaced
5242:c6eeec0f9b40 | 5243:13dd683f3ff2 |
---|---|
828 url_fskip(pb, size); | 828 url_fskip(pb, size); |
829 //av_log(s, AV_LOG_DEBUG, "SKIP\n"); | 829 //av_log(s, AV_LOG_DEBUG, "SKIP\n"); |
830 goto resync; | 830 goto resync; |
831 } | 831 } |
832 | 832 |
833 //parse stray LIST | |
834 if(d[0] == 'L' && d[1] == 'I' && d[2] == 'S' && d[3] == 'T'){ | |
835 url_fskip(pb, 4); | |
836 goto resync; | |
837 } | |
838 | |
833 n= get_stream_idx(d); | 839 n= get_stream_idx(d); |
834 | 840 |
835 if(!((i-avi->last_pkt_pos)&1) && get_stream_idx(d+1) < s->nb_streams) | 841 if(!((i-avi->last_pkt_pos)&1) && get_stream_idx(d+1) < s->nb_streams) |
836 continue; | 842 continue; |
837 | 843 |