[FFmpeg-devel] [PATCH] avformat/bonk: Don't set data_offset to what it would be set to anyway

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Sep 15 20:39:26 EEST 2022


Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavformat/bonk.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavformat/bonk.c b/libavformat/bonk.c
> index fc400979b3..0fff0b5bda 100644
> --- a/libavformat/bonk.c
> +++ b/libavformat/bonk.c
> @@ -79,7 +79,6 @@ static int bonk_read_header(AVFormatContext *s)
>          return AVERROR_INVALIDDATA;
>      st->duration              = AV_RL32(st->codecpar->extradata + 1) / st->codecpar->ch_layout.nb_channels;
>      avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
> -    ffformatcontext(s)->data_offset = avio_tell(s->pb);
>  
>      return 0;
>  }

Will apply tomorrow unless there are objections.

- Andreas


More information about the ffmpeg-devel mailing list