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

Marton Balint cus at passwd.hu
Sat May 7 17:51:49 CEST 2016


On Thu, 5 May 2016, Nicolas George wrote:

> 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.

Applied, thanks.

Marton


More information about the ffmpeg-devel mailing list