<div dir="ltr">Hi,<div><br></div><div>After following the call chain I found this lineĀ <a href="https://ffmpeg.org/doxygen/trunk/demux_8c_source.html#l00549">https://ffmpeg.org/doxygen/trunk/demux_8c_source.html#l00549</a>. Does it mean that it is guaranteed the packet passed as argument will be unrefinedĀ first in newer versions of ffmpeg? As in, is this part of the public interface now? I think there is no way it is correct to not unref before overwriting the packet, except may be when the bufferref points at external data.</div><div><br></div><div>Kind regards,</div><div>Olzhas</div></div>