You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffplay: drop redundant NULL sws_freeContext() check in stream_close()
sws_freeContext() already checks for NULL, simplify.
This commit is contained in:
1
ffplay.c
1
ffplay.c
@@ -994,7 +994,6 @@ static void stream_close(VideoState *is)
|
|||||||
SDL_DestroyCond(is->subpq_cond);
|
SDL_DestroyCond(is->subpq_cond);
|
||||||
SDL_DestroyCond(is->continue_read_thread);
|
SDL_DestroyCond(is->continue_read_thread);
|
||||||
#if !CONFIG_AVFILTER
|
#if !CONFIG_AVFILTER
|
||||||
if (is->img_convert_ctx)
|
|
||||||
sws_freeContext(is->img_convert_ctx);
|
sws_freeContext(is->img_convert_ctx);
|
||||||
#endif
|
#endif
|
||||||
av_free(is);
|
av_free(is);
|
||||||
|
Reference in New Issue
Block a user