[FFmpeg-devel] [PATCH] avformat: Add simple ACLR atom reading to set the color range
kevin.j.wheatley at gmail.com
Thu Feb 19 12:25:34 CET 2015
V3 of the patch, I've attempted to include the general comments from the thread.
New to this version, I've reworked the function that reads the atom
into the extradata into one which calls 2 helper functions (one to
realloc, one to read), I've then reused these functions to read the
ACLR atom reliably.
My ACLR reading function now calls these functions directly rather
than via the mov_read_avid() function, this means that the atom will
be used to set the range no matter which codec is used for the track
(in the current code the mov_read_avid() function limits it to a
restricted set pf codecs).
I have not changed how the ACLR is used in the writer as it will still
be found in the extradata buffer, this does mean that there maybe
cases of 'none avid' codecs that now have the atom and when ouput
could have modified behavior but I've never seen one of these files
to test with.
Thanks for any comments,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6508 bytes
Desc: not available
More information about the ffmpeg-devel