Prevents crash (double free) when free()ing the original packet.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit e73c6aaabf)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
tags/n0.10.3