[MPlayer-dev-eng] [PATCH] problem opening AVI/ODML files with idx option.

Benjamin Zores ben at tutuxclan.org
Tue Jan 24 14:14:14 CET 2006


Current MPlayer seems to have a problem opening some AVI files with
OpenDML's inside when using the -idx option.
In fact many GeeXboX users complained us about being unable to open some
divx files (but as most of them aren't power users they can't provide us
precise info but by divx i guess they were talking about .avi files) and
we do have the idex=yes param in our mplayer.conf file.

Here's a sample of a broken AVI file that let you reproduce the bug (3MB) :

http://geexbox.org/~ben/idx.avi

So basically, it plays fine using -noidx (default) or -forceidx but ends
up immediatly using -idx.

Output is :

ODML (03tx): [0] 0x0000000015a1fdc6 0x0028 1
list_end=0x46A
AVI: dmlh found (size=248) (total_frames=62631)
list_end=0xFFF4
hdr=Software  size=42
Software  : AVI-Mux GUI 1.16.11, Dec 15 2004  14:51:34
list_end=0x111F18
Found movie at 0x10000 - 0x111F18
Reading INDEX block, 356 chunks for 133 frames (fpos=0x111f20)
additional RIFF header...
list_end=0x15A1FDEE
Found movie at 0x10000 - 0x15A1FDEE
cache_stream_seek: WARNING! Can't seek to 0x15A1FDEE !
AVI index offset: 0x0 (movi=0x10000 idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
ChunkOffset out of range!   idx=0x4
ChunkOffset out of range!   idx=0x18C
ChunkOffset out of range!   idx=0x284
...
cache_stream_seek: WARNING! Can't seek to 0x17FF177E !
ds_fill_buffer: EOF reached (stream: video)
AVI: Missing video stream!? Contact the author, it may be a bug :(

vo: x11 uninit called but X11 not inited..

Exiting... (End of file)


Attached is a patch that should restore a good behavior (i.e reading
OpenDML index if one is found and idx=yes).

Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-idx.diff
Type: text/x-patch
Size: 483 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060124/4a89a517/attachment.bin>


More information about the MPlayer-dev-eng mailing list