On Wed, Dec 05, 2018 at 12:31:10AM +0100, Steinar H. Gunderson wrote: > Some demuxers, like Matroska, allow for sending colorspace information > that override MJPEG defaults when it comes to Y'CbCr coefficients or > chroma location. Don't override such data if the demuxer already has > set it; this allows decoding such MJPEG streams correctly. > > Also document in avcodec.h that these fields are actually set first by > libavformat, even if libavcodec is usually the one to set them. This is > not new behavior; e.g., dnxhd already works this way.
Attaching the FATE test file used (created by myself; it's just a black MJPEG frame, although with the special CS=ITU601 tag set to get TV range). /* Steinar */ -- Homepage: https://www.sesse.net/
mjpeg-color-space.mkv
Description: video/matroska
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel