Skip to content
Snippets Groups Projects
Commit 7a1a9dd5 authored by Anton Khirnov's avatar Anton Khirnov Committed by Luca Barbato
Browse files

pthread: make sure AVFrame.extended_data is set properly.


Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent c8ba8be2
No related branches found
No related tags found
No related merge requests found
......@@ -377,6 +377,10 @@ static attribute_align_arg void *frame_worker_thread(void *arg)
p->got_frame = 0;
p->result = codec->decode(avctx, &p->frame, &p->got_frame, &p->avpkt);
/* many decoders assign whole AVFrames, thus overwriting extended_data;
* make sure it's set correctly */
p->frame.extended_data = p->frame.data;
if (p->state == STATE_SETTING_UP) ff_thread_finish_setup(avctx);
p->state = STATE_INPUT_READY;
......
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