ffmpeg | branch: master | Paul B Mahol <[email protected]> | Mon Aug  3 19:31:31 
2020 +0200| [b4ae780693a058486f84fd07d79739dba6f742d5] | committer: Paul B Mahol

avcodec/cfhdenc: fix PrescaleTable for YUV422P10

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4ae780693a058486f84fd07d79739dba6f742d5
---

 libavcodec/cfhdenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to