On 24/03/14 07:26, [email protected] wrote:
> Hi,
>
> We are developing our framework based on libav H.264 decoder, now we
> need to pre-allocated all frame buffers due to some limitation in
> video render. But we can't find any frame buffer numbers related
> information reported from libav api. So our question is if there are
> any ways to get minimum frame buffer number for current video clip.
Given the structure of h264 it is not known, there is a maximum set to
32 pictures.
> We know the libav use callback(get_buffer/release_buffer) to manage
> the frame buffers, but it is still important to know the required
> minimum buffer number before starting decode. Thanks.
Actually get_buffer2 is used, you should expect at most 32+{number of
worker threads} frame buffers used.
Let me know if more information is needed.
lu
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api