From a447b75de8edb8658ad3c50af0c342bcdda2b57b Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 23 Sep 2017 20:30:13 -0300 Subject: avformat: replace all uses of av_copy_packet() Signed-off-by: James Almer --- libavformat/wtvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/wtvenc.c') diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 4925a60049..4a68b8133f 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -464,7 +464,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) AVStream *st = s->streams[pkt->stream_index]; if (st->codecpar->codec_id == AV_CODEC_ID_MJPEG && !wctx->thumbnail.size) { - av_copy_packet(&wctx->thumbnail, pkt); + av_packet_ref(&wctx->thumbnail, pkt); return 0; } else if (st->codecpar->codec_id == AV_CODEC_ID_H264) { int ret = ff_check_h264_startcode(s, st, pkt); -- cgit v1.2.3