Commit 935a9986 authored by James Almer's avatar James Almer

avformat/movenc: move the concatenated eac3 packet reference

Simplifies code.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent eeca8921
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment