mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffplay: check for buffersink_params allocation success
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
abd49a7524
commit
afd9e705de
3
ffplay.c
3
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;
|
AVFilterContext *filt_src = NULL, *filt_out = NULL, *filt_format, *filt_crop;
|
||||||
AVCodecContext *codec = is->video_st->codec;
|
AVCodecContext *codec = is->video_st->codec;
|
||||||
|
|
||||||
|
if (!buffersink_params)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
|
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
|
||||||
graph->scale_sws_opts = av_strdup(sws_flags_str);
|
graph->scale_sws_opts = av_strdup(sws_flags_str);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user