[FFmpeg-cvslog] ffplay: drop redundant NULL sws_freeContext() check in stream_close()

Stefano Sabatini git at videolan.org
Sun Feb 3 11:20:08 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Feb  2 16:31:57 2013 +0100| [c91f1f3f926d4ba36ab051adc447ff56391210c3] | committer: Stefano Sabatini

ffplay: drop redundant NULL sws_freeContext() check in stream_close()

sws_freeContext() already checks for NULL, simplify.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c91f1f3f926d4ba36ab051adc447ff56391210c3
---

 ffplay.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index efb5468..7e65a17 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);
 }



More information about the ffmpeg-cvslog mailing list