[FFmpeg-devel] [PATCH] AVFoundation: Add -pixel_format option
Thilo Borgmann
thilo.borgmann at mail.de
Thu Jun 12 00:24:40 CEST 2014
> Am 11.06.2014 um 21:35 schrieb Carl Eugen Hoyos <cehoyos at ag.or.at>:
>
> Thilo Borgmann <thilo.borgmann <at> mail.de> writes:
>
>> + // select first supported pixel format instead
>> of user selected (or default) pixel format
>> + if (pxl_fmt_spec.ff_id == AV_PIX_FMT_NONE) {
>> + pxl_fmt_spec = pxl_fmt_dummy;
>
> Should monoblack and rgb5x5 be moved down in avf_pixel_formats[]?
> Or do I misunderstand the code?
> (default should be rgb24 or similar)
This block selects the first supported format of the device in order of enumeration - independent of the order of the formats array.
-Thilo
More information about the ffmpeg-devel
mailing list