[FFmpeg-devel] avformat/flvdec: delete unused code

leozhang leozhang at qiyi.com
Tue Aug 13 10:06:00 EEST 2019


Signed-off-by: leozhang <leozhang at qiyi.com>
---
 libavformat/flvdec.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b531a39..4e8faed 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1265,22 +1265,6 @@ retry_duration:
             if (st->codecpar->codec_id == AV_CODEC_ID_AAC && t && !strcmp(t->value, "Omnia A/XE"))
                 st->codecpar->extradata_size = 2;
 
-            if (st->codecpar->codec_id == AV_CODEC_ID_AAC && 0) {
-                MPEG4AudioConfig cfg;
-
-                if (avpriv_mpeg4audio_get_config(&cfg, st->codecpar->extradata,
-                                                 st->codecpar->extradata_size * 8, 1) >= 0) {
-                st->codecpar->channels       = cfg.channels;
-                st->codecpar->channel_layout = 0;
-                if (cfg.ext_sample_rate)
-                    st->codecpar->sample_rate = cfg.ext_sample_rate;
-                else
-                    st->codecpar->sample_rate = cfg.sample_rate;
-                av_log(s, AV_LOG_TRACE, "mp4a config channels %d sample rate %d\n",
-                        st->codecpar->channels, st->codecpar->sample_rate);
-                }
-            }
-
             ret = FFERROR_REDO;
             goto leave;
         }
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list