Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-10-28 03:31:14 +0400
committerMarton Balint <cus@passwd.hu>2012-11-01 18:46:18 +0400
commitafd9e705dea7f61eca49dec1fbe46073f00a43ae (patch)
tree16bba17a06a30f4c9e9a82ebe44b41430ec438d6 /ffplay.c
parentabd49a75240f71a3a8c6281c4838a6de42ae930b (diff)
ffplay: check for buffersink_params allocation success
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index f6831499fb..c6bf61198e 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);