aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oma.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2008-06-25 19:59:52 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2008-06-25 19:59:52 +0000
commit75d27450a1c452b3d1058b1ca0c2c3b30770330e (patch)
tree96276de91e7390762c63222ae67dc0312b9d714a /libavformat/oma.c
parentde8c8181a94a72041f3a915c03b7885831e131df (diff)
downloadffmpeg-75d27450a1c452b3d1058b1ca0c2c3b30770330e.tar.gz
Add support for mp3 contained in oma
Originally committed as revision 13980 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oma.c')
-rw-r--r--libavformat/oma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/oma.c b/libavformat/oma.c
index 1f8f51238f..653f41301f 100644
--- a/libavformat/oma.c
+++ b/libavformat/oma.c
@@ -147,6 +147,10 @@ static int oma_read_header(AVFormatContext *s,
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
break;
+ case OMA_CODECID_MP3:
+ st->need_parsing = AVSTREAM_PARSE_FULL;
+ framesize = 1024;
+ break;
default:
av_log(s, AV_LOG_ERROR, "Unsupported codec %d!\n",buf[32]);
return -1;