diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-08-14 03:00:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-08-14 03:00:56 +0000 |
commit | bc3a73bc8763499e31cfaed931778cece144d511 (patch) | |
tree | a9d2d5351be89b218045843d2510dd0c378be2f4 /libavformat/avidec.c | |
parent | ea4b2b5e2cec92f7d9e1cded61f69b2d63d22e9c (diff) | |
download | ffmpeg-bc3a73bc8763499e31cfaed931778cece144d511.tar.gz |
remove broken movi_end skip-hack-check
this should fix seeking over the first riff chunk in odml
Originally committed as revision 10114 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 4cf99bb6b9..567210097b 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -674,14 +674,6 @@ resync: for(i=sync=url_ftell(pb); !url_feof(pb); i++) { int j; - if (i >= avi->movi_end) { - if (avi->is_odml) { - url_fskip(pb, avi->riff_end - i); - avi->riff_end = avi->movi_end = url_fsize(pb); - } else - break; - } - for(j=0; j<7; j++) d[j]= d[j+1]; d[7]= get_byte(pb); @@ -701,7 +693,8 @@ resync: //parse ix## if( (d[0] == 'i' && d[1] == 'x' && n < s->nb_streams) //parse JUNK - ||(d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K')){ + ||(d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K') + ||(d[0] == 'i' && d[1] == 'd' && d[2] == 'x' && d[3] == '1')){ url_fskip(pb, size); //av_log(NULL, AV_LOG_DEBUG, "SKIP\n"); goto resync; |