[FFmpeg-cvslog] ffplay: check for buffersink_params allocation success

Marton Balint git at videolan.org
Thu Nov 1 22:15:36 CET 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Oct 28 01:31:14 2012 +0200| [afd9e705dea7f61eca49dec1fbe46073f00a43ae] | committer: Marton Balint

ffplay: check for buffersink_params allocation success

Signed-off-by: Marton Balint <cus at passwd.hu>

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

 ffplay.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index f683149..c6bf611 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1698,6 +1698,9 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
     AVFilterContext *filt_src = NULL, *filt_out = NULL, *filt_format, *filt_crop;
     AVCodecContext *codec = is->video_st->codec;
 
+    if (!buffersink_params)
+        return AVERROR(ENOMEM);
+
     snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
     graph->scale_sws_opts = av_strdup(sws_flags_str);
 



More information about the ffmpeg-cvslog mailing list