summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-07-05 09:47:29 +0300
committerMartin Storsjö <martin@martin.st>2012-07-05 22:07:45 +0300
commite43f56b205a6112451bba3da965f327850bf67a9 (patch)
tree6c700336f4dbe61068c707f96313806bf88ee848 /libavformat/flvdec.c
parentbb58c43c69078c6cf29a9efee12e14469e2c21f8 (diff)
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>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 602cb9ebee..12c250437a 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -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: