Skip to content
Snippets Groups Projects
Commit 9745f19f authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

assdec: check the right variable

CC: libav-stable@libav.org
Bug-Id: CID 1257815
parent 971099ff
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment