[FFmpeg-devel] [PATCH 2/2] avformat/tee: Use ref instead copy in write_packet

Nicolas George george at nsup.org
Thu May 5 11:17:31 CEST 2016


Le quartidi 14 floréal, an CCXXIV, sebechlebskyjan at gmail.com a écrit :
> From: Jan Sebechlebsky <sebechlebskyjan at gmail.com>
> 
> Replace av_copy_packet and deprecated av_dup_packet by
> creating reference using av_packet_ref.
> 
> Signed-off-by: Jan Sebechlebsky <sebechlebskyjan at gmail.com>
> ---
>  This should be effectively the same as calling av_packet_clone,
>  but without dynamic memory allocation (reuses local AVPacket pkt).
>  
>  libavformat/tee.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Looks right, thanks.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160505/da03825b/attachment.sig>


More information about the ffmpeg-devel mailing list