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

avcodec/pthread_frame: fix setting hwaccel with threads and get_format()


Fixes assertion failure with vdpau and vlc
Fixes Ticket3742

Tested-by: oromit
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 31d49db7
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
p->result = ff_get_buffer(p->avctx, p->requested_frame, p->requested_flags);
break;
case STATE_GET_FORMAT:
p->result_format = p->avctx->get_format(p->avctx, p->available_formats);
p->result_format = ff_get_format(p->avctx, p->available_formats);
break;
default:
call_done = 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