[FFmpeg-cvslog] dnxhdenc: do not select 4:4:4 profiles
Christophe Gisquet
git at videolan.org
Mon Oct 5 12:43:58 CEST 2015
ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Sat Oct 3 18:59:16 2015 +0200| [52256860d6e3eb003294659ae015cd1f1b3ffdfc] | committer: Michael Niedermayer
dnxhdenc: do not select 4:4:4 profiles
The encoder can only deal with 4:2:2.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52256860d6e3eb003294659ae015cd1f1b3ffdfc
---
libavcodec/dnxhddata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index 4bb215a..798cc0e 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -1111,7 +1111,7 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
int interlaced = cid->flags & DNXHD_INTERLACED ? 1 : 0;
if (cid->width == avctx->width && cid->height == avctx->height &&
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++) {
if (cid->bit_rates[j] == mbs)
return cid->cid;
More information about the ffmpeg-cvslog
mailing list