diff options
author | James Almer <jamrial@gmail.com> | 2018-03-14 05:35:12 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-03-16 02:37:33 +0300 |
commit | 935a9986fc2ef4ab4a752632be258811ec7f695f (patch) | |
tree | b76773d1d0249d396af11f7e9816c1a6bea340b8 | |
parent | eeca8921e265f565e687eea414cef5790f2b2bbc (diff) |
avformat/movenc: move the concatenated eac3 packet reference
Simplifies code.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
-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; |