aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-08-03 19:31:31 +0200
committerPaul B Mahol <onemda@gmail.com>2020-08-03 19:34:23 +0200
commitb4ae780693a058486f84fd07d79739dba6f742d5 (patch)
treeed218c41879db718ab146b21702e3d4c648c110c
parent08f60a35b452967091aec8426f97c502226090e2 (diff)
downloadffmpeg-b4ae780693a058486f84fd07d79739dba6f742d5.tar.gz
avcodec/cfhdenc: fix PrescaleTable for YUV422P10
-rw-r--r--libavcodec/cfhdenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c
index 22fc23285e..68644529da 100644
--- a/libavcodec/cfhdenc.c
+++ b/libavcodec/cfhdenc.c
@@ -525,7 +525,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 10 : 12);
bytestream2_put_be16(pby, PrescaleTable);
- bytestream2_put_be16(pby, 0x2800);
+ bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 0x2000 : 0x2800);
bytestream2_put_be16(pby, SampleFlags);
bytestream2_put_be16(pby, 1);