[FFmpeg-devel] avformat: Don't suggest deprecated function

Submitted by Andreas Rheinhardt on July 13, 2019, 4:48 p.m.

Details

Message ID 20190713164848.59326-1-andreas.rheinhardt@gmail.com
State Accepted
Commit a2572e3c670db018a414e9c168eef23ec2e3abc4
Headers show

Commit Message

Andreas Rheinhardt July 13, 2019, 4:48 p.m.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/avformat.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

James Almer July 13, 2019, 5:09 p.m.
On 7/13/2019 1:48 PM, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavformat/avformat.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index 734ae54cac..6eb329f13f 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -175,8 +175,8 @@
>   * Otherwise, if AVPacket.buf is NULL, the packet data is backed by a
>   * static storage somewhere inside the demuxer and the packet is only valid
>   * until the next av_read_frame() call or closing the file. If the caller
> - * requires a longer lifetime, av_dup_packet() will make an av_malloc()ed copy
> - * of it.
> + * requires a longer lifetime, av_packet_make_refcounted() will ensure that
> + * the data is reference counted, copying the data if necessary.
>   * In both cases, the packet must be freed with av_packet_unref() when it is no
>   * longer needed.
>   *

Applied, thanks.

Patch hide | download patch | download mbox

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 734ae54cac..6eb329f13f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -175,8 +175,8 @@ 
  * Otherwise, if AVPacket.buf is NULL, the packet data is backed by a
  * static storage somewhere inside the demuxer and the packet is only valid
  * until the next av_read_frame() call or closing the file. If the caller
- * requires a longer lifetime, av_dup_packet() will make an av_malloc()ed copy
- * of it.
+ * requires a longer lifetime, av_packet_make_refcounted() will ensure that
+ * the data is reference counted, copying the data if necessary.
  * In both cases, the packet must be freed with av_packet_unref() when it is no
  * longer needed.
  *