summaryrefslogtreecommitdiff
path: root/libavcodec/assdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/assdec.c')
-rw-r--r--libavcodec/assdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c
index 47ea3308f4..979af2a221 100644
--- a/libavcodec/assdec.c
+++ b/libavcodec/assdec.c
@@ -31,6 +31,8 @@ static av_cold int ass_decode_init(AVCodecContext *avctx)
memcpy(avctx->subtitle_header, avctx->extradata, avctx->extradata_size);
avctx->subtitle_header_size = avctx->extradata_size;
avctx->priv_data = ff_ass_split(avctx->extradata);
+ if(!avctx->priv_data)
+ return -1;
return 0;
}