1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.

This commit is contained in:
Clément Bœsch 2012-02-13 23:21:50 +01:00
parent 048cc80292
commit 73413e6bca

View File

@ -620,6 +620,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
int ret;
ost->graph = avfilter_graph_alloc();
if (!ost->graph)
return AVERROR(ENOMEM);
if (ist->st->sample_aspect_ratio.num) {
sample_aspect_ratio = ist->st->sample_aspect_ratio;