[FFmpeg-devel] [PATCH 2/2] encode: copy the context timebase to the packet timebase

Lynne dev at lynne.ee
Mon Aug 2 15:37:53 EEST 2021


(One-line) Patch attached:

> --- a/libavcodec/encode.c 
> +++ b/libavcodec/encode.c
> @@ -44,6 +44,7 @@ int ff_alloc_packet(AVCodecContext *avctx, AVPacket *avpkt, int64_t size)
>      av_fast_padded_malloc(&avctx->internal->byte_buffer,
>                            &avctx->internal->byte_buffer_size, size);
>      avpkt->data = avctx->internal->byte_buffer;
> +    avpkt->time_base = avctx->time_base;
>      if (!avpkt->data) {
>          av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %"PRId64"\n", size);
>          return AVERROR(ENOMEM);

I'm not sure if this is the correct place to do this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-encode-copy-the-context-timebase-to-the-packet-timeb.patch
Type: text/x-patch
Size: 912 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210802/baddac72/attachment.bin>


More information about the ffmpeg-devel mailing list