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 13:28:10 +0200 |
commit | 590a168cf9ad8deda0a8a840bc238252a0ef45a6 (patch) | |
tree | 8cec9602c5708e964cb651fa5923a0ceb640841d /doc/examples/encode_audio.c | |
parent | 4639e4743fd52b6991e2cf59478de7ab62324033 (diff) | |
download | ffmpeg-590a168cf9ad8deda0a8a840bc238252a0ef45a6.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 'doc/examples/encode_audio.c')
0 files changed, 0 insertions, 0 deletions