aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wtvenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 20:30:13 -0300
committerJames Almer <jamrial@gmail.com>2017-09-25 21:26:38 -0300
commita447b75de8edb8658ad3c50af0c342bcdda2b57b (patch)
tree0b8c9cfa1d8edf59ea47d2bf270e35bc1b80a588 /libavformat/wtvenc.c
parentecb9741ba294d7617ca85aaec0226ee9be7f518d (diff)
downloadffmpeg-a447b75de8edb8658ad3c50af0c342bcdda2b57b.tar.gz
avformat: replace all uses of av_copy_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/wtvenc.c')
-rw-r--r--libavformat/wtvenc.c2
1 files changed, 1 insertions, 1 deletions
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);