aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-12-17 14:53:44 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-12-18 23:27:14 +0100
commit9745f19ffc9031ce480e43d7cf1053b58100d70f (patch)
tree52741bd7ec3b82dcf9bdf014ab19dfe608ccc34a
parent971099ff5a85377579eb5b8d3620e283957f097e (diff)
downloadffmpeg-9745f19ffc9031ce480e43d7cf1053b58100d70f.tar.gz
assdec: check the right variable
CC: libav-stable@libav.org Bug-Id: CID 1257815
-rw-r--r--libavcodec/assdec.c2
1 files changed, 1 insertions, 1 deletions
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;