mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
flvdec: Treat all nellymoser versions as the same codec
This avoids creating new AVStreams for them when switching between different variants of them, since we can handle changes between different sample rates of nellymoser within the same stream. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bb58c43c69
commit
e43f56b205
@ -113,11 +113,7 @@ static int flv_same_audio_codec(AVCodecContext *acodec, int flags)
|
||||
case FLV_CODECID_MP3:
|
||||
return acodec->codec_id == CODEC_ID_MP3;
|
||||
case FLV_CODECID_NELLYMOSER_8KHZ_MONO:
|
||||
return acodec->sample_rate == 8000 &&
|
||||
acodec->codec_id == CODEC_ID_NELLYMOSER;
|
||||
case FLV_CODECID_NELLYMOSER_16KHZ_MONO:
|
||||
return acodec->sample_rate == 16000 &&
|
||||
acodec->codec_id == CODEC_ID_NELLYMOSER;
|
||||
case FLV_CODECID_NELLYMOSER:
|
||||
return acodec->codec_id == CODEC_ID_NELLYMOSER;
|
||||
case FLV_CODECID_PCM_MULAW:
|
||||
|
Loading…
Reference in New Issue
Block a user