[FFmpeg-cvslog] avformat/wavdec: fix typo with len

Michael Niedermayer git at videolan.org
Sun Apr 3 17:57:06 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Apr  3 17:34:15 2016 +0200| [06c4ed0c0e349602ae6ca31c39693f73bce9bf61] | committer: Michael Niedermayer

avformat/wavdec: fix typo with len

Found-by: carl
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/wavdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index c620963..ac98fa9 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -65,8 +65,8 @@ static void set_spdif(AVFormatContext *s, WAVDemuxContext *wav)
     if (CONFIG_SPDIF_DEMUXER && s->streams[0]->codec->codec_tag == 1) {
         enum AVCodecID codec;
         uint8_t *buf = NULL;
-        int ret = ffio_ensure_seekback(s->pb, sizeof(buf));
         int len = 1<<16;
+        int ret = ffio_ensure_seekback(s->pb, len);
         int64_t pos = avio_tell(s->pb);
 
         if (ret < 0)



More information about the ffmpeg-cvslog mailing list