diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-02-02 16:31:57 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-02-03 11:15:27 +0100 |
commit | c91f1f3f926d4ba36ab051adc447ff56391210c3 (patch) | |
tree | c074daf6bbc3633c6003b6b5d26817c98c9fe917 /ffplay.c | |
parent | 0cecaa9e2edfa4fb198a70a175a039d0b6b2f845 (diff) | |
download | ffmpeg-c91f1f3f926d4ba36ab051adc447ff56391210c3.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |