[FFmpeg-devel] [PATCH 08/15] avformat/wady: Combine skips

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat Mar 23 04:06:16 EET 2024


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/wady.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/wady.c b/libavformat/wady.c
index 6dcc0018f3..17b7a88c19 100644
--- a/libavformat/wady.c
+++ b/libavformat/wady.c
@@ -45,13 +45,12 @@ static int wady_read_header(AVFormatContext *s)
     int channels, ret;
     AVStream *st;
 
-    avio_skip(pb, 4);
+    avio_skip(pb, 4 + 1);
 
     st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
 
-    avio_skip(pb, 1);
     par              = st->codecpar;
     par->codec_type  = AVMEDIA_TYPE_AUDIO;
     par->codec_id    = AV_CODEC_ID_WADY_DPCM;
-- 
2.40.1



More information about the ffmpeg-devel mailing list