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

Andreas Rheinhardt git at videolan.org
Fri Sep 16 18:51:32 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Sep 12 15:51:11 2022 +0200| [2c23cd0181ef18c8dd968218d45c15c1b035ba65] | committer: Andreas Rheinhardt

avformat/bonk: Don't set data_offset to what it would be set to anyway

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c23cd0181ef18c8dd968218d45c15c1b035ba65
---

 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;
 }



More information about the ffmpeg-cvslog mailing list