1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

dnxhdenc: do not select 4:4:4 profiles

The encoder can only deal with 4:2:2.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Christophe Gisquet
2015-10-03 18:59:16 +02:00
committed by Michael Niedermayer
parent 4e7cba1d8a
commit 52256860d6

View File

@@ -1111,7 +1111,7 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
int interlaced = cid->flags & DNXHD_INTERLACED ? 1 : 0; int interlaced = cid->flags & DNXHD_INTERLACED ? 1 : 0;
if (cid->width == avctx->width && cid->height == avctx->height && if (cid->width == avctx->width && cid->height == avctx->height &&
interlaced == !!(avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) && interlaced == !!(avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) &&
cid->bit_depth == bit_depth) { !(cid->flags & DNXHD_444) && cid->bit_depth == bit_depth) {
for (j = 0; j < FF_ARRAY_ELEMS(cid->bit_rates); j++) { for (j = 0; j < FF_ARRAY_ELEMS(cid->bit_rates); j++) {
if (cid->bit_rates[j] == mbs) if (cid->bit_rates[j] == mbs)
return cid->cid; return cid->cid;