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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue