diff options
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5b1e66c897..d681d519e6 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -491,10 +491,7 @@ concatenate: if (info->num_blocks != 6) goto end; av_packet_unref(pkt); - ret = av_packet_ref(pkt, &info->pkt); - if (ret < 0) - goto end; - av_packet_unref(&info->pkt); + av_packet_move_ref(pkt, &info->pkt); info->num_blocks = 0; } ret = pkt->size; |