]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/assdec.c
mimic: Convert to the new bitstream reader
[ffmpeg] / libavcodec / assdec.c
index 7a69582aa22810910081aa21dbd5731fa570a9a6..48fe32ee99e2e4468dfafd1600078c36d629e848 100644 (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;