[FFmpeg-cvslog] avformat/mlvdec:drop unnecessary check before ff_format_io_close

Steven Liu git at videolan.org
Sat Nov 9 04:28:59 EET 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Sat Nov  9 11:27:14 2019 +0900| [bb190ded678a0ad8fc365af897b042c9dd013936] | committer: Steven Liu

avformat/mlvdec:drop unnecessary check before ff_format_io_close

Reviewed-by: Linjie Fu <linjie.fu at intel.com>
Reviewed-by: Jun Zhao <barryjzhao at tencent.com>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb190ded678a0ad8fc365af897b042c9dd013936
---

 libavformat/mlvdec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index 68ca2c5e1c..dae13cae53 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -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;
 }
 



More information about the ffmpeg-cvslog mailing list