Mercurial > libavformat.hg
comparison flvdec.c @ 1385:8aa2dc127eb8 libavformat
flv files from myspace with mp3 audio require need_parsing because the
frames are fragmented.
author | rtogni |
---|---|
date | Fri, 13 Oct 2006 18:21:28 +0000 |
parents | 0899bfe4105c |
children | 822f6b8a9b5e |
comparison
equal
deleted
inserted
replaced
1384:56c4d97618f2 | 1385:8aa2dc127eb8 |
---|---|
174 st->codec->sample_rate = (44100<<((flags>>2)&3))>>3; | 174 st->codec->sample_rate = (44100<<((flags>>2)&3))>>3; |
175 switch(flags >> 4){/* 0: uncompressed 1: ADPCM 2: mp3 5: Nellymoser 8kHz mono 6: Nellymoser*/ | 175 switch(flags >> 4){/* 0: uncompressed 1: ADPCM 2: mp3 5: Nellymoser 8kHz mono 6: Nellymoser*/ |
176 case 0: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16BE; | 176 case 0: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16BE; |
177 else st->codec->codec_id = CODEC_ID_PCM_S8; break; | 177 else st->codec->codec_id = CODEC_ID_PCM_S8; break; |
178 case 1: st->codec->codec_id = CODEC_ID_ADPCM_SWF; break; | 178 case 1: st->codec->codec_id = CODEC_ID_ADPCM_SWF; break; |
179 case 2: st->codec->codec_id = CODEC_ID_MP3; break; | 179 case 2: st->codec->codec_id = CODEC_ID_MP3; st->need_parsing = 1; break; |
180 // this is not listed at FLV but at SWF, strange... | 180 // this is not listed at FLV but at SWF, strange... |
181 case 3: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16LE; | 181 case 3: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16LE; |
182 else st->codec->codec_id = CODEC_ID_PCM_S8; break; | 182 else st->codec->codec_id = CODEC_ID_PCM_S8; break; |
183 default: | 183 default: |
184 av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flags >> 4); | 184 av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flags >> 4); |