Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-02-02 19:31:57 +0400
committerStefano Sabatini <stefasab@gmail.com>2013-02-03 14:15:27 +0400
commitc91f1f3f926d4ba36ab051adc447ff56391210c3 (patch)
treec074daf6bbc3633c6003b6b5d26817c98c9fe917 /ffplay.c
parent0cecaa9e2edfa4fb198a70a175a039d0b6b2f845 (diff)
ffplay: drop redundant NULL sws_freeContext() check in stream_close()
sws_freeContext() already checks for NULL, simplify.
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index efb5468307..7e65a179b4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -994,8 +994,7 @@ static void stream_close(VideoState *is)
SDL_DestroyCond(is->subpq_cond);
SDL_DestroyCond(is->continue_read_thread);
#if !CONFIG_AVFILTER
- if (is->img_convert_ctx)
- sws_freeContext(is->img_convert_ctx);
+ sws_freeContext(is->img_convert_ctx);
#endif
av_free(is);
}