summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-02-02 16:31:57 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-02-03 11:15:27 +0100
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);
}