Skip to content
Snippets Groups Projects
Commit dd20e7ed authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

assdec: check that the alloc+init of the private data succeeded.


Fixes a part of Ticket1208

Found-by: John Villamil and Piotr Bandurski
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 3938a0ee
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ static av_cold int ass_decode_init(AVCodecContext *avctx)
memcpy(avctx->subtitle_header, avctx->extradata, avctx->extradata_size);
avctx->subtitle_header_size = avctx->extradata_size;
avctx->priv_data = ff_ass_split(avctx->extradata);
if(!avctx->priv_data)
return -1;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment