doc/examples: do not allocate AVFrame directly.
The size of the AVFrame structure is not part of the ABI; it can grow with later versions. Therefore, applications are not supposed to allocate AVFrame directly, they are supposed to use avcodec_alloc_frame() instead.
Showing
Please
register
or
sign in
to comment