[FFmpeg-devel] [PATCH] avformat/movenc: move the concatenated eac3 packet reference
James Almer
jamrial at gmail.com
Wed Mar 14 04:35:18 EET 2018
Simplifies code.
Signed-off-by: James Almer <jamrial at 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
More information about the ffmpeg-devel
mailing list