[FFmpeg-devel] [PATCH] Enables parsing DVD color palette directly from IFO file

James Darnley james.darnley at gmail.com
Mon Nov 10 15:22:19 CET 2014

On 2014-11-10 15:01, Nicolas George wrote:
>> +      fread(&c,  1, 1, in);
>> +      fread(&Y,  1, 1, in);
>> +      fread(&Cr, 1, 1, in);
>> +      fread(&Cb, 1, 1, in);
> You could replace that with a single read into an array; that would not
> allow to call the variables R, Cr, Cb, but that does not matter much.

Perhaps a union (or an array of a union type) would preserve the
readability of separate variables and still allow one read.  Or is that
not portable between LE and BE?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141110/2c21de96/attachment.asc>

More information about the ffmpeg-devel mailing list