diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-11-09 11:27:14 +0900 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-11-09 11:27:14 +0900 |
commit | bb190ded678a0ad8fc365af897b042c9dd013936 (patch) | |
tree | 74254adc06cbd33579818c640cba35086c61e194 | |
parent | a605e9ad1e12dfbc632f9a1dc17f5dd9c69776c6 (diff) | |
download | ffmpeg-streaming-bb190ded678a0ad8fc365af897b042c9dd013936.zip ffmpeg-streaming-bb190ded678a0ad8fc365af897b042c9dd013936.tar.gz |
avformat/mlvdec:drop unnecessary check before ff_format_io_close
Reviewed-by: Linjie Fu <linjie.fu@intel.com>
Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r-- | libavformat/mlvdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index 68ca2c5..dae13ca 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; } |