Commit 4c4c3d5d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libstagefright: Check for pthread_create() failure

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 40cc3be7
......@@ -364,7 +364,8 @@ static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
AVFrame *ret_frame;
if (!s->thread_started) {
pthread_create(&s->decode_thread_id, NULL, &decode_thread, avctx);
if(pthread_create(&s->decode_thread_id, NULL, &decode_thread, avctx))
return AVERROR(ENOMEM);
s->thread_started = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment