aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-02-10 14:41:55 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-02-10 14:44:00 +0100
commit034a125c8c5178a5dd4a1ee8eb2168e15b0e94d7 (patch)
tree3ce23b1b9614371b632cb7472aea8f1577c12c92
parent2c5e4ae29180aa325fd5bd84c37d4551ec884214 (diff)
downloadffmpeg-034a125c8c5178a5dd4a1ee8eb2168e15b0e94d7.tar.gz
Support more atrac3-in-mkv samples.
The mkv demuxer sometimes finds 12 bytes of realmedia extradata after the matroska real audio properties.
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 1e54784a8d..c43de719c6 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -908,7 +908,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
avctx->channels, frame_factor);
return AVERROR_INVALIDDATA;
}
- } else if (avctx->extradata_size == 10) {
+ } else if (avctx->extradata_size == 12 || avctx->extradata_size == 10) {
/* Parse the extradata, RM format. */
version = bytestream_get_be32(&edata_ptr);
samples_per_frame = bytestream_get_be16(&edata_ptr);