[Mplayer-users] problem with asus asv2 solved!

Jens Hoffmann hoffmajs at gmx.de
Sun Apr 15 10:01:49 CEST 2001

topic says it all,

i found the problem, why the video is pixelized:

the avi-files encoded with ASV2 have an extra large header of 48 Bytes
for the videodata,
unfortunately mplayer cuts them to sizeof(BITMAPINFOHEADER) == 40 Bytes.

as an ugly workaround, i added some bytes extra space after
BITMAPINFOHEADER bih; in sh_video_t
and changed aviheader.c:
   case ckidSTREAMFORMAT: {      // read 'strf'
-        stream_read(demuxer->stream,(char*)
+        stream_read(demuxer->stream,(char*) &sh_video->bih, size2);

and the video played correct :)

im looking into a correct fix (i.e. allocate space dynamic instead of an
fixed bih)
but thats not going to be a small fix.. bih is used everythere.

i´m even not sure where to allocate the space:
1) reallocate space if size2 > current bih size in aviheader.c just
before stream_read, or
2) allocate space once then the mainindex is read (before

will see..

cu jens

No electrons were harmed during the creation of this message

Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net

More information about the MPlayer-users mailing list