summaryrefslogtreecommitdiff
path: root/libavcodec/cavsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-10 13:59:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-10 14:02:39 +0100
commit35e559ae32f22153198bb54a79015982403c704f (patch)
tree6b8ba69a9c087e73422ecc2ac11230564d96bb14 /libavcodec/cavsdec.c
parent6f838dee3cf86bf8b7196ef25bcce1cb4736a0c4 (diff)
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.c2
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;
}