[FFmpeg-devel] [PATCH 01/27] avformat/astenc: Simplify writing padding

James Almer jamrial at gmail.com
Thu Sep 23 18:25:11 EEST 2021


On 9/23/2021 12:06 PM, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>   libavformat/astenc.c | 4 +---
>   1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/libavformat/astenc.c b/libavformat/astenc.c
> index cf75b48b21..a5792e0b07 100644
> --- a/libavformat/astenc.c
> +++ b/libavformat/astenc.c
> @@ -118,9 +118,7 @@ static int ast_write_packet(AVFormatContext *s, AVPacket *pkt)
>       avio_wb32(pb, size); /* Block size */
>   
>       /* padding */
> -    avio_wb64(pb, 0);
> -    avio_wb64(pb, 0);
> -    avio_wb64(pb, 0);
> +    ffio_fill(pb, 0, 24);

Should be ok.

>   
>       avio_write(pb, pkt->data, pkt->size);
>   
> 



More information about the ffmpeg-devel mailing list