On Fri, Oct 23, 2015 at 11:11 AM, Luca Barbato <[email protected]> wrote:
> As documented, `av_dup_packet` is broken by design, `av_packet_ref`
> matches the AVFrame ref-counted API and can be safely used instead.
> ---
> doc/APIchanges | 2 ++
> libavcodec/avcodec.h | 5 ++++-
> libavcodec/avpacket.c | 4 ++++
> libavformat/matroskaenc.c | 7 +------
> libavformat/mux.c | 10 ++++------
> 5 files changed, 15 insertions(+), 13 deletions(-)
>
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 7e463cd..b3a3a1c 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -16,6 +16,8 @@ API changes, most recent first:
> 2015-xx-xx - xxxxxxx - lavc 57.6.0 - avcodec.h
> Deprecate av_free_packet, av_packet_unref replaces it
> and resets the packet in a more consistent way.
> + Deprecate av_dup_packet, it is a no-op for most cases,
> + use av_packet_ref to make a non-refcounted AVPacket refcounted.
please use the following format so that each description can have its own hash
xxxxxx - Deprecate av_free_packet, av_packet_unref replaces it
and resets the packet in a more consistent way.
xxxxxx - Deprecate av_dup_packet, it is a no-op for most cases,
use av_packet_ref instead to make a non-refcounted
AVPacket refcounted.
--
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel