Browse Source

assdec: check the right variable

CC: libav-stable@libav.org
Bug-Id: CID 1257815
tags/n2.6
Vittorio Giovara 11 years ago
parent
commit
9745f19ffc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/assdec.c

+ 1
- 1
libavcodec/assdec.c 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;


Loading…
Cancel
Save