summaryrefslogtreecommitdiff
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-01-21 22:53:57 +0100
committerClément Bœsch <ubitux@gmail.com>2012-01-30 23:29:34 +0100
commit6a3cc21242c1133671ee1e4eede9a97e0a6b3392 (patch)
treeeac760825ed8e16bbb5649348d923ace8fc1a311 /libavformat/mp3dec.c
parentcc7342f712c0822c3e8f4c36fc55632c59aabac9 (diff)
mp3dec: fix truncating packet error message while decoding a complete MP3.
The MP3 demuxer split the data in packets of 1024B which are later split in MP3 frames by the MPEG audio parser. The last read is "truncated", but this should not raise any error. Solution-by: Michael Niedermayer
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 8dfcea23bc..f3079e3116 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -149,6 +149,7 @@ static int mp3_read_header(AVFormatContext *s)
// lcm of all mp3 sample rates
avpriv_set_pts_info(st, 64, 1, 14112000);
+ s->pb->maxsize = -1;
off = avio_tell(s->pb);
if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))