[FFmpeg-devel,V1,1/3] lavf/utils: Remove redundancy AVFMT_FLAG_CUSTOM_IO setting

Submitted by Jun Zhao on March 25, 2019, 8:39 a.m.

Details

Message ID 1553503145-27653-1-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao March 25, 2019, 8:39 a.m.
From: Jun Zhao <barryjzhao@tencent.com>

After commit ba631b79, we don't need to re-setting AVFMT_FLAG_CUSTOM_IO
in init_input().

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/utils.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 9b3f0d2..fe67c8f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -421,7 +421,6 @@  static int init_input(AVFormatContext *s, const char *filename,
     int score = AVPROBE_SCORE_RETRY;
 
     if (s->pb) {
-        s->flags |= AVFMT_FLAG_CUSTOM_IO;
         if (!s->iformat)
             return av_probe_input_buffer2(s->pb, &s->iformat, filename,
                                          s, 0, s->format_probesize);