diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index d40de1406c..b445d9c424 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2120,6 +2120,7 @@ static int dash_read_header(AVFormatContext *s) AVProgram *program; program = av_new_program(s, 0); if (!program) { + ret = AVERROR(ENOMEM); goto fail; }