Module: libav Branch: master Commit: 9745f19ffc9031ce480e43d7cf1053b58100d70f
Author: Vittorio Giovara <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Wed Dec 17 14:53:44 2014 +0100 assdec: check the right variable CC: [email protected] Bug-Id: CID 1257815 --- libavcodec/assdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c index 7a69582..48fe32e 100644 --- a/libavcodec/assdec.c +++ b/libavcodec/assdec.c @@ -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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
