[FFmpeg-cvslog] avformat/movenc: move the concatenated eac3 packet reference
James Almer
git at videolan.org
Fri Mar 16 01:38:58 EET 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Mar 13 23:35:12 2018 -0300| [935a9986fc2ef4ab4a752632be258811ec7f695f] | committer: James Almer
avformat/movenc: move the concatenated eac3 packet reference
Simplifies code.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=935a9986fc2ef4ab4a752632be258811ec7f695f
---
libavformat/movenc.c | 5 +----
1 file changed, 1 insertion(+), 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;
More information about the ffmpeg-cvslog
mailing list