aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.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/movenc.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/movenc.c')
-rw-r--r--libavformat/movenc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 10b959ad02..ba3e263f9f 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -437,8 +437,8 @@ concatenate:
return AVERROR_INVALIDDATA;
if (!info->num_blocks) {
- int ret;
- if ((ret = av_copy_packet(&info->pkt, pkt)) < 0)
+ int ret = av_packet_ref(&info->pkt, pkt);
+ if (ret < 0)
return ret;
info->num_blocks = num_blocks;
return 0;
@@ -454,7 +454,8 @@ concatenate:
if (info->num_blocks != 6)
return 0;
av_packet_unref(pkt);
- if ((ret = av_copy_packet(pkt, &info->pkt)) < 0)
+ ret = av_packet_ref(pkt, &info->pkt);
+ if (ret < 0)
return ret;
av_packet_unref(&info->pkt);
info->num_blocks = 0;