[FFmpeg-cvslog] assdec: check the right variable

Vittorio Giovara git at videolan.org
Fri Dec 19 05:04:10 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Dec 17 14:53:44 2014 +0100| [9745f19ffc9031ce480e43d7cf1053b58100d70f] | committer: Vittorio Giovara

assdec: check the right variable

CC: libav-stable at libav.org
Bug-Id: CID 1257815

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9745f19ffc9031ce480e43d7cf1053b58100d70f
---

 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;



More information about the ffmpeg-cvslog mailing list