avformat/tee: Use ref instead copy in write_packet
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>
Sun, 1 May 2016 22:34:46 +0000 (01:34 +0300)
committerMarton Balint <cus@passwd.hu>
Sat, 7 May 2016 15:25:40 +0000 (17:25 +0200)
commit1bc83f6ea8ff35eae2113e7f21713d298c27ebd1
tree891bb6718e1c5c90c7a8df588edad8c011fac539
parenta3c877aca78f282a2848613cc144836e55144751
avformat/tee: Use ref instead copy in write_packet

Replace av_copy_packet and deprecated av_dup_packet by
creating reference using av_packet_ref.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/tee.c