[Ffmpeg-devel] Re: [BUG] TSCC wrong colors on PPC
Sun Jan 8 21:32:31 CET 2006
> - case 16: pix = *src++;
> - pix = *src++;
> + case 16: *((uint16_t*)pix) = LE_16(src);
> + src += 2;
The steps are reversed. Following the model I used in qtrle.c:
pix16 = LE_16(src);
src += 2;
*((uint16_t*)pix) = pix16;
Or some such. The point here is that explicit byte ordering is used when
reading the original encoded bytestream from memory, and native byte
ordering is used when writing the decoded image back to memory.
Hope this helps...
More information about the ffmpeg-devel