1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

assdec: check the right variable

CC: libav-stable@libav.org
Bug-Id: CID 1257815
This commit is contained in:
Vittorio Giovara 2014-12-17 14:53:44 +01:00
parent 971099ff5a
commit 9745f19ffc

View File

@ -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;