This avoids creating new AVStreams for them when switching between
different variants of them.
---
libavformat/flvdec.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 093cd0a..5b232cb 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -110,11 +110,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:
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel