mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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>
This commit is contained in:
parent
eeca8921e2
commit
935a9986fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user