diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-02-19 20:58:41 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-02-19 21:15:35 +0100 |
commit | 82472afe183bbab7adf31ad9b61874421293690d (patch) | |
tree | 77a91a17636127f22b06aec37a4f186c93d4d637 /libavcodec/cfhdenc.c | |
parent | c2ca1eb2a7403ef9a868a1c7a66d9096cac0703e (diff) | |
download | ffmpeg-82472afe183bbab7adf31ad9b61874421293690d.tar.gz |
avcodec/cfhdenc: use pts instead of frame number
Makes encodes bitexact with different number of threads.
Diffstat (limited to 'libavcodec/cfhdenc.c')
-rw-r--r-- | libavcodec/cfhdenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c index 5554baefa3..7b6b3c92f2 100644 --- a/libavcodec/cfhdenc.c +++ b/libavcodec/cfhdenc.c @@ -650,7 +650,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, bytestream2_put_be16(pby, avctx->height); bytestream2_put_be16(pby, -FrameNumber); - bytestream2_put_be16(pby, avctx->frame_number); + bytestream2_put_be16(pby, frame->pts & 0xFFFF); bytestream2_put_be16(pby, Precision); bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 10 : 12); |