diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-05 14:46:38 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-05 14:46:38 +0200 |
commit | c6758ac027e5c5444f640498ee07658c1dbc8842 (patch) | |
tree | 11efb88fd97a2d29b327cbba91287822d8aa1c89 /libavformat/mpc8.c | |
parent | 396d2aecc5a21779a9df57f4f472e5f1ae3188c3 (diff) | |
download | ffmpeg-c6758ac027e5c5444f640498ee07658c1dbc8842.tar.gz |
Skip padding bytes after reading musepack8 header.
Fixes ticket #1160.
Diffstat (limited to 'libavformat/mpc8.c')
-rw-r--r-- | libavformat/mpc8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c index a711369414..c8eaddc757 100644 --- a/libavformat/mpc8.c +++ b/libavformat/mpc8.c @@ -239,6 +239,8 @@ static int mpc8_read_header(AVFormatContext *s) avpriv_set_pts_info(st, 32, 1152 << (st->codec->extradata[1]&3)*2, st->codec->sample_rate); st->duration = c->samples / (1152 << (st->codec->extradata[1]&3)*2); size -= avio_tell(pb) - pos; + if (size > 0) + avio_skip(pb, size); return 0; } |