Th intention is to make sure we don't free buffers which were not allocated by FFmpeg. This is a possible fix for T47806.