Simplifies code. Signed-off-by: James Almer <jamr...@gmail.com> --- libavformat/movenc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index a17bb85900..df6163bae5 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; -- 2.16.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel