On 09/25/2012 08:08 AM, Anton Khirnov wrote:
> ---
>  libavcodec/pthread.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
> index e0489ac..0496257 100644
> --- a/libavcodec/pthread.c
> +++ b/libavcodec/pthread.c
> @@ -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;
> 

Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to