Not needed. av_free_packet should be null safe.