Page 1 of 1

How is ffmpeg_GetFrameBuf() called?

Posted: 20 Sep 2013 10:06
by busybeeCS
It seems as if the function ffmpeg_GetFrameBuf has been called repeatedly in different threads. Does it aim to do some post-processing after decoding?

Tracing the code, i see ffmpeg_GetFrameBuf is only assigned to p_sys->p_context->get_buffer in video.c without directly being called, but i cannot find where is p_sys->p_context->get_buffer called?

Can anybody give me some explanation? I will be grateful.

Re: How is ffmpeg_GetFrameBuf() called?

Posted: 21 Sep 2013 09:29
by RĂ©mi Denis-Courmont
It's a libavcodec callback.

Re: How is ffmpeg_GetFrameBuf() called?

Posted: 21 Sep 2013 10:56
by busybeeCS
It's a libavcodec callback.
can u tell me where it is triggered?