diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-10 13:59:46 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-10 14:02:39 +0100 |
commit | 35e559ae32f22153198bb54a79015982403c704f (patch) | |
tree | 6b8ba69a9c087e73422ecc2ac11230564d96bb14 /libavcodec/cavsdec.c | |
parent | 6f838dee3cf86bf8b7196ef25bcce1cb4736a0c4 (diff) | |
download | ffmpeg-35e559ae32f22153198bb54a79015982403c704f.tar.gz |
avcodec/cavs: Check for av_malloc* failure in ff_cavs_init_top_lines()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r-- | libavcodec/cavsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index b5304eab9e..cffb19c959 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -1151,7 +1151,7 @@ static int decode_seq_header(AVSContext *h) h->avctx->width = h->width; h->avctx->height = h->height; if (!h->top_qp) - ff_cavs_init_top_lines(h); + return ff_cavs_init_top_lines(h); return 0; } |