changeset 3507:3c1206ad5d64 libavformat

Add support for mp3 contained in oma
author banan
date Wed, 25 Jun 2008 19:59:52 +0000
parents 795b0af34f5c
children 834b97115722
files oma.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/oma.c	Wed Jun 25 19:57:57 2008 +0000
+++ b/oma.c	Wed Jun 25 19:59:52 2008 +0000
@@ -147,6 +147,10 @@
             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;