diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 6620a8d324..b618be0bf5 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -468,7 +468,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx, FrameThreadContext *fctx = avctx->internal->thread_ctx; int finished = fctx->next_finished; PerThreadContext *p; - int err, ret; + int err, ret = 0; /* release the async lock, permitting blocked hwaccel threads to * go forward while we are in this function */