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?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel