aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.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-05-20 01:10:43 +0200
commit2765e927315c87cede25d42fbcf4f1f41bfed5a5 (patch)
treee08027f6eb6876d310b7201686e65e8ef191b554 /libavformat/utils.c
parent10b1d1d3ca6f69d27915ba4a7bf110b7a2e1e9f6 (diff)
downloadffmpeg-2765e927315c87cede25d42fbcf4f1f41bfed5a5.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)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions