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-03 16:14:46 +0200 |
commit | c790095828223d9eb405c0ac62a6ef3c9a8a9966 (patch) | |
tree | 1a2c4d8ac6f60dfeacc2d42d835e28bb6dec6f9a /tests/api/api-threadmessage-test.c | |
parent | 5941c8fa05aecd4cc394c45732c418e9aee655cc (diff) | |
download | ffmpeg-c790095828223d9eb405c0ac62a6ef3c9a8a9966.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 'tests/api/api-threadmessage-test.c')
0 files changed, 0 insertions, 0 deletions