ffmpeg | branch: master | Steven Liu <l...@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...@intel.com>
Reviewed-by: Jun Zhao <barryjz...@tencent.com>
Signed-off-by: Steven Liu <l...@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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to