mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/cfhdenc: use pts instead of frame number
Makes encodes bitexact with different number of threads.
This commit is contained in:
parent
c2ca1eb2a7
commit
82472afe18
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user