Skip padding bytes after reading musepack8 header.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 5 May 2012 12:46:38 +0000 (14:46 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 5 May 2012 12:46:38 +0000 (14:46 +0200)
Fixes ticket #1160.

libavformat/mpc8.c

index a711369..c8eaddc 100644 (file)
@@ -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;
 }