Package: libavformat0d
Version: 0.cvs20060329-3bpo1
Severity: normal
Tags: patch

I have been attempting to convert a section near the end of a large
AVI file (3.6 GB) into Ogg Theora using ffmpeg2theora.  The AVI file
has a DML index with index chunks at 1 GB intervals.  The RIFF header
apparently indicates that the file length is just over 1 GB.  What I
find is that conversion starts from around the 1 GB mark and not the
time I specified.

I tried extracting the same section with ffmpeg and found the same
problem.

I eventually enabled some debug output in avidec.c in libavformat and
used that together with strace to narrow down the problem.
avi_read_seek() seeks to the correct position but then
avi_read_packet(), having detected that the position is beyond the
declared file length, seeks again.  I cannot see what the purpose of
this seek is, and removing it fixes the problem for me:

--- ffmpeg-0.cvs20060329.orig/libavformat/avidec.c
+++ ffmpeg-0.cvs20060329/libavformat/avidec.c
@@ -594,7 +594,6 @@
 
         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;
-- END --

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libavformat0d depends on:
ii  libavcodec0d         0.cvs20060329-3bpo1 ffmpeg codec library
ii  libc6                2.3.2.ds1-22sarge3  GNU C Library: Shared libraries an
ii  libdc1394-11         1.0.0-4             high level programming interface f
ii  libgsm1              1.0.10-13           Shared libraries for GSM speech co
ii  libogg0              1.1.2-1             Ogg Bitstream Library
ii  libraw1394-5         0.10.1-1.1          library for direct access to IEEE 
ii  libtheora0-mmx [libt 0.0.0alpha5-2~sarge Ogg Theora video compression codec
ii  libvorbis0a          1.1.0-1             The Vorbis General Audio Compressi
ii  libvorbisenc2        1.1.0-1             The Vorbis General Audio Compressi
ii  zlib1g               1:1.2.2-4.sarge.2   compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to