diff mbox

[FFmpeg-devel,3/4] avformat/movenc: replace use of av_copy_packet_side_data()

Message ID 20170925010612.9824-3-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Sept. 25, 2017, 1:06 a.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/movenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index aa0b60c345..0e98b93b2c 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -449,7 +449,8 @@  concatenate:
         memcpy(info->pkt.data + info->pkt.size - pkt->size, pkt->data, pkt->size);
         info->num_blocks += num_blocks;
         info->pkt.duration += pkt->duration;
-        if ((ret = av_copy_packet_side_data(&info->pkt, pkt)) < 0)
+        ret = av_packet_copy_side_data(&info->pkt, pkt);
+        if (ret < 0)
             return ret;
         if (info->num_blocks != 6)
             return 0;