diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-08-04 11:25:25 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-08-08 12:03:43 +0200 |
commit | a96506f01748d746591e13d9e1fceb862efde922 (patch) | |
tree | 002a6759ea805fa778bb2053d4dca65c997076a1 /libavcodec/cfhdenc.c | |
parent | 9d58cdb4ba9c2c53da74d0898e060cff30c74dcd (diff) |
avcodec/cfhdenc: also write FrameNumber tag
Diffstat (limited to 'libavcodec/cfhdenc.c')
-rw-r--r-- | libavcodec/cfhdenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c index 10cf7c03ac..9b21bc2894 100644 --- a/libavcodec/cfhdenc.c +++ b/libavcodec/cfhdenc.c @@ -542,7 +542,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } } - ret = ff_alloc_packet2(avctx, pkt, 60LL + s->planes * (2LL * avctx->width * avctx->height + 1000LL), 0); + ret = ff_alloc_packet2(avctx, pkt, 64LL + s->planes * (2LL * avctx->width * avctx->height + 1000LL), 0); if (ret < 0) return ret; @@ -587,6 +587,9 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, bytestream2_put_be16(pby, ImageHeight); bytestream2_put_be16(pby, avctx->height); + bytestream2_put_be16(pby, -FrameNumber); + bytestream2_put_be16(pby, avctx->frame_number); + bytestream2_put_be16(pby, Precision); bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 10 : 12); |