From bb190ded678a0ad8fc365af897b042c9dd013936 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Sat, 9 Nov 2019 11:27:14 +0900 Subject: avformat/mlvdec:drop unnecessary check before ff_format_io_close Reviewed-by: Linjie Fu Reviewed-by: Jun Zhao Signed-off-by: Steven Liu --- libavformat/mlvdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat/mlvdec.c') 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; } -- cgit v1.2.3