comparison flvdec.c @ 2604:cb5f9ba6b63b libavformat

Nellymoser ASAO decoder
author banan
date Mon, 15 Oct 2007 16:26:02 +0000
parents aabd822b5db5
children 002ab6bbf9db
comparison
equal deleted inserted replaced
2603:4a3957734e85 2604:cb5f9ba6b63b
48 case FLV_CODECID_ADPCM: acodec->codec_id = CODEC_ID_ADPCM_SWF; break; 48 case FLV_CODECID_ADPCM: acodec->codec_id = CODEC_ID_ADPCM_SWF; break;
49 case FLV_CODECID_MP3 : acodec->codec_id = CODEC_ID_MP3 ; astream->need_parsing = AVSTREAM_PARSE_FULL; break; 49 case FLV_CODECID_MP3 : acodec->codec_id = CODEC_ID_MP3 ; astream->need_parsing = AVSTREAM_PARSE_FULL; break;
50 case FLV_CODECID_NELLYMOSER_8HZ_MONO: 50 case FLV_CODECID_NELLYMOSER_8HZ_MONO:
51 acodec->sample_rate = 8000; //in case metadata does not otherwise declare samplerate 51 acodec->sample_rate = 8000; //in case metadata does not otherwise declare samplerate
52 case FLV_CODECID_NELLYMOSER: 52 case FLV_CODECID_NELLYMOSER:
53 acodec->codec_id = CODEC_ID_NELLYMOSER;
54 break;
53 default: 55 default:
54 av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flv_codecid >> FLV_AUDIO_CODECID_OFFSET); 56 av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flv_codecid >> FLV_AUDIO_CODECID_OFFSET);
55 acodec->codec_tag = flv_codecid >> FLV_AUDIO_CODECID_OFFSET; 57 acodec->codec_tag = flv_codecid >> FLV_AUDIO_CODECID_OFFSET;
56 } 58 }
57 } 59 }