mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavfi/mergeplanes: Fix little endian yuv formats >8 bit and <16bit.
Fixes remaining cases of ticket #5916.
This commit is contained in:
parent
1a65d2a3cc
commit
bf52730051
@ -122,6 +122,7 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
for (i = 0; av_pix_fmt_desc_get(i); i++) {
|
for (i = 0; av_pix_fmt_desc_get(i); i++) {
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
|
||||||
if (desc->comp[0].depth == s->outdesc->comp[0].depth &&
|
if (desc->comp[0].depth == s->outdesc->comp[0].depth &&
|
||||||
|
(desc->comp[0].depth <= 8 || (desc->flags & AV_PIX_FMT_FLAG_BE) == (s->outdesc->flags & AV_PIX_FMT_FLAG_BE)) &&
|
||||||
av_pix_fmt_count_planes(i) == desc->nb_components &&
|
av_pix_fmt_count_planes(i) == desc->nb_components &&
|
||||||
(ret = ff_add_format(&formats, i)) < 0)
|
(ret = ff_add_format(&formats, i)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user