diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-21 04:50:20 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-01 23:30:17 +0200 |
commit | f411e3aede1f17599d02d1ab8d92a3c6d99e6676 (patch) | |
tree | b8f822963ec4243c90607d13a31947c93e9cc1f8 /libavcodec | |
parent | 54d2f9518814fce97453e8cc074a4675765693dc (diff) | |
download | ffmpeg-f411e3aede1f17599d02d1ab8d92a3c6d99e6676.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')
0 files changed, 0 insertions, 0 deletions