avformat/mlvdec:drop unnecessary check before ff_format_io_close
authorSteven Liu <lq@chinaffmpeg.org>
Sat, 9 Nov 2019 02:27:14 +0000 (11:27 +0900)
committerSteven Liu <lq@chinaffmpeg.org>
Sat, 9 Nov 2019 02:27:14 +0000 (11:27 +0900)
Reviewed-by: Linjie Fu <linjie.fu@intel.com>
Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/mlvdec.c

index 68ca2c5..dae13ca 100644 (file)
@@ -462,8 +462,7 @@ static int read_close(AVFormatContext *s)
     MlvContext *mlv = s->priv_data;
     int i;
     for (i = 0; i < 100; i++)
-        if (mlv->pb[i])
-            ff_format_io_close(s, &mlv->pb[i]);
+        ff_format_io_close(s, &mlv->pb[i]);
     return 0;
 }