aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc2enc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-21 04:50:20 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-02 23:56:12 +0200
commitd001c06f8223c7ccb41c6075949dd27de25fcf90 (patch)
tree7a0dea5a60258cabb35cae9f6f337773a17fa5a6 /libavcodec/vc2enc.c
parent97e0ff9793b82b2da827ac33b84b900c1ca1d35f (diff)
downloadffmpeg-d001c06f8223c7ccb41c6075949dd27de25fcf90.tar.gz
avformat/subtitles: Don't increment packet counter prematurely
Do it only if the packet has been successfully allocated in av_new_packet() -- otherwise on error a completely uninitialized packet would be unreferenced later. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6bd8bcc2ac4c64577d964552317989e61db794d8) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/vc2enc.c')
0 files changed, 0 insertions, 0 deletions