Browse Source

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>
tags/n4.0
James Almer 8 years ago
parent
commit
935a9986fc
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavformat/movenc.c

+ 1
- 4
libavformat/movenc.c View File

@@ -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…
Cancel
Save