[FFmpeg-devel,2/2] lavf/format: Remove the dead code in av_probe_input_buffer2.

Submitted by Jun Zhao on April 8, 2018, 12:17 a.m.

Details

Message ID 3849a691-90be-8e5f-4fd9-005d8464c5de@gmail.com
State Accepted
Commit 053ee996a03b8744af6e12d39e3087efae218b64
Headers show

Commit Message

Jun Zhao April 8, 2018, 12:17 a.m.
From df6293f42fad1e4521389c23c984519caa98d3f5 Mon Sep 17 00:00:00 2001
From: Jun Zhao <mypopydev@gmail.com>
Date: Sun, 8 Apr 2018 08:09:13 +0800
Subject: [PATCH 2/2] lavf/format: Remove the dead code in
 av_probe_input_buffer2.

Remove the dead code in av_probe_input_buffer2

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 libavformat/format.c | 8 --------
 1 file changed, 8 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/format.c b/libavformat/format.c
index 1c66afb7e6..2c4c895530 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -250,14 +250,6 @@  int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
             *semi = '\0';
         }
     }
-#if 0
-    if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {
-        if (!av_strcasecmp(mime_type, "audio/aacp")) {
-            *fmt = av_find_input_format("aac");
-        }
-        av_freep(&mime_type);
-    }
-#endif
 
     for (probe_size = PROBE_BUF_MIN; probe_size <= max_probe_size && !*fmt;
          probe_size = FFMIN(probe_size << 1,