[FFmpeg-devel] [PATCH] avformat/riffenc: fix handling monowhite when pix_fmt is not set

Mats Peterson matsp888 at yahoo.com
Tue Feb 23 18:50:58 CET 2016


On 02/23/2016 05:23 PM, Michael Niedermayer wrote:
>> 2. You say that demuxers might not set the pixel format. This is on
>> the muxing side though. Isn't the pixel format always set when
>> muxing?
>
> theres no guratee that its set for the muxer
> there could be demuxer -> muxer with no decoder as well but thats
> not the only case, it could just be that the application doesnt
> set it, its not written in the API that the application has to set it
>
>

Perhaps so, but for raw uncompressed video, as long as you only have one 
collective 'raw ' fourcc for it, it's crucial to know the pixel format, 
whether it's RGB, grayscale or YUV for example.

Mats



More information about the ffmpeg-devel mailing list