avformat/wavdec: fix typo with len
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 3 Apr 2016 15:34:15 +0000 (17:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 3 Apr 2016 15:56:02 +0000 (17:56 +0200)
Found-by: carl
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/wavdec.c

index c620963..ac98fa9 100644 (file)
@@ -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)