[MPlayer-dev-eng] [PATCH] semi-fixing mencoder lavc on big endian

Arpi arpi at thot.banki.hu
Tue Jul 30 20:29:27 CEST 2002


Hi,

>        // write index chunk:
> -      write_avi_chunk(f,ckidAVINEWINDEX,16*muxer->idx_pos,muxer->idx);
> +{
> +      int pos=16*muxer->idx_pos;
> +      le2me_AVIINDEXENTRY(muxer->idx);
> +      write_avi_chunk(f,ckidAVINEWINDEX,pos,muxer->idx); /* AVIINDEXENTRY */
> +      le2me_AVIINDEXENTRY(muxer->idx);
> +}

this is bad...
16*muxer->idx_pos is not a 'pos', but the size of the whole index chunk, so
16*number_of_index_entries.
so, le2me_AVIINDEXENTRY() shoudl be done for every index entries (in a loop),
not only for the first one.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list