[Mplayer-users] problem with asus asv2 solved!

Arpi arpi at thot.banki.hu
Sun Apr 15 22:36:49 CEST 2001


Hi,

> topic says it all,
> 
> i found the problem, why the video is pixelized:
Great!!!

> 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'
>       if(last_fccType==streamtypeVIDEO){
> -        stream_read(demuxer->stream,(char*)
> &sh_video->bih,MIN(size2,sizeof(sh_video->bih)));
> +        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'll make it, leave it for me. I'm currently working teh stream code, so
it's simpler to me to do it.

I'll change static bih (and wf too) struct to dynamic.
I'll allocate it at header reading to the right size.

Thank you for help!


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list