From 9745f19ffc9031ce480e43d7cf1053b58100d70f Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 17 Dec 2014 14:53:44 +0100 Subject: [PATCH] assdec: check the right variable CC: libav-stable@libav.org Bug-Id: CID 1257815 --- libavcodec/assdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c index 7a69582aa2..48fe32ee99 100644 --- a/libavcodec/assdec.c +++ b/libavcodec/assdec.c @@ -29,7 +29,7 @@ static av_cold int ass_decode_init(AVCodecContext *avctx) { avctx->subtitle_header = av_malloc(avctx->extradata_size); - if (!avctx->extradata) + if (!avctx->subtitle_header) return AVERROR(ENOMEM); memcpy(avctx->subtitle_header, avctx->extradata, avctx->extradata_size); avctx->subtitle_header_size = avctx->extradata_size;