mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/336/head
parent
5acef12061
commit
6bd8bcc2ac
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue