Add support for mp3 contained in oma

Originally committed as revision 13980 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Benjamin Larsson 2008-06-25 19:59:52 +00:00
parent de8c8181a9
commit 75d27450a1
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ static int oma_read_header(AVFormatContext *s,
av_set_pts_info(st, 64, 1, st->codec->sample_rate); av_set_pts_info(st, 64, 1, st->codec->sample_rate);
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n"); av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
break; break;
case OMA_CODECID_MP3:
st->need_parsing = AVSTREAM_PARSE_FULL;
framesize = 1024;
break;
default: default:
av_log(s, AV_LOG_ERROR, "Unsupported codec %d!\n",buf[32]); av_log(s, AV_LOG_ERROR, "Unsupported codec %d!\n",buf[32]);
return -1; return -1;